Committing Tim's fixes...
* Safer handling of non-MediaWiki exceptions -- now obeys our settings for
formatting and path exposure.
* Less verbose errors from profileinfo.php when not configured
+* Blacklist redirects via Special:Filepath, hard to use.
=== API changes in 1.14 ===
$m[1] = urldecode( ltrim( $m[1], ':' ) );
}
$title = Title::newFromText( $m[1] );
- // Redirects to Special:Userlogout are not permitted
- if( $title instanceof Title && !$title->isSpecial( 'Userlogout' ) )
+ // Redirects to some special pages are not permitted
+ if( $title instanceof Title
+ && !$title->isSpecial( 'Userlogout' )
+ && !$title->isSpecial( 'Filepath' ) )
+ {
return $title;
+ }
}
}
return null;